cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

find_package(LibBin++ REQUIRED)
include_directories(${LibBin++_INCLUDE_DIRS})

add_executable(smigen
  smigen.cpp
  smigen_input.c
  put_smi.cpp
)

add_executable(smigen64
  smigen64.cpp
  smigen_input.c
  put_smi.cpp
)

add_executable(fixrgb
  fixrgb.c
)

target_link_libraries(smigen
  ${LibBin++_LIBRARIES}
)

target_link_libraries(smigen64
  ${LibBin64++_LIBRARIES}
)

install (TARGETS smigen smigen64 fixrgb DESTINATION bin)
